package com.software.questioncenter.service;

import com.software.questioncenter.entity.Answer;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Author: wjx
 * Description: 题解Answer的服务层
 */
public interface AnswerService {

    Page queryAnswerList(String questionId, Pageable pageable);

    void createAnswer(Answer answer);

    Answer findById(String answerId);

    List<Answer> queryAnswerByContent(String content, Integer questionId);
}
